﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kokomo.Mirror
{
	[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
	class SerializeSwitchAttribute : SerializedConditionalAttribute
	{
		public Type StructType { get; private set; }

		public SerializeSwitchAttribute(
			string conditionPropertyName,
			Type structType
			)
			: base(conditionPropertyName)
		{
			if ((object)structType == null) throw new ArgumentNullException("structType");

			this.StructType = structType;
		}
	}
}
